package com.ynet.middleground.contract.bean;

import java.util.List;

import javax.validation.constraints.NotNull;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 新增模板表格单元格参数请求类
 * @date 2020-04-03 15:12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "新增模板表格单元格参数请求类", description = "为模板中表格参数列表")
public class AddTemplateTableParamsReq extends BaseReqObj {

    private static final long serialVersionUID = -655214841107157126L;

    @ApiModelProperty(value = "业态公司 id \n（仅综合管理平台使用）", notes = "业态公司 id \n（仅综合管理平台使用）", dataType = "Integer")
    private Integer formatId;

    @ApiModelProperty(value = "表格 id", notes = "表格 id", dataType = "Integer", required = true)
    @NotNull(message = "表格 id 不能为空")
    private Integer tableId;

    @ApiModelProperty(value = "新增表格参数列表", notes = "新增表格参数列表", required = true)
    @NotNull(message = "表格参数列表不能为空")
    private List<TemplateTableParamReq> params;

}
